/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.isp.violation.violation.Impl;

import za.ac.cput.isp.violation.violation.Employee;

/**
 *
 * @author given
 */
public class EmployeeImpl implements Employee{
    private String name;
    private String surname;
    private String degree;
    private int gradYear;
    private String collegeName;
    private int hoursWorked;
    private double hourlyRate;
    private double salary;

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void setSurname(String surname) {
        this.surname = surname;
    }

    @Override
    public void setDegreeStudied(String degree) {
        this.degree = degree;
    }

    @Override
    public void setYearGraduated(int gradYear) {
        this.gradYear = gradYear;
    }

    @Override
    public void setUniversity(String collegeName) {
        this.collegeName = collegeName;
    }

    @Override
    public void calculateSal() {
        salary = hourlyRate * hoursWorked;
    }

    @Override
    public void setHourlyrate(double hourlyRate) {
        this.hourlyRate = hourlyRate;
    }

    @Override
    public void setHoursWorked(int hoursWorked) {
        this.hoursWorked = hoursWorked;
    }

    @Override
    public double getSalary() {
        return salary;
    }
    
}
